<template>
  <div id="div">
    <!-- 轮播图区域 -->
    <lunbo :lunBoList='lunBoList'></lunbo>

    <!-- 九宫格 -->
    <ul class="mui-table-view mui-grid-view mui-grid-9">
      <li class="mui-table-view-cell mui-media">
        <router-link  to="/home/newList">
          <img src="../images/menu1.png" alt>
          <div class="mui-media-body">新闻咨询</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/photo/0">
          <img src="../images/menu2.png" alt>
          <div class="mui-media-body">图片分享</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/goodsList">
          <img src="../images/menu3.png" alt>
          <div class="mui-media-body">商品购买</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <a href="#">
          <img src="../images/menu4.png" alt>
          <div class="mui-media-body">留言反馈</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media">
        <a href="#">
          <img src="../images/menu5.png" alt>
          <div class="mui-media-body">视频专区</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media">
        <a href="#">
          <img src="../images/menu6.png" alt>
          <div class="mui-media-body">联系我们</div>
        </a>
      </li>
    </ul>
  </div>
</template>

<script>
import lunbo from '../../src/components/slide/slide'
export default {
  data() {
    return {
      lunBoList:[]
    };
  },
  created() {
    this.getLun();
  },
  methods: {
    getLun() {
      this.$http
        .get("api/getlunbo")
        .then(result => {
          this.lunBoList = result.body.message;
        });
    }
  },

  components: {
    lunbo
  }
};
</script>


<style scoped>

.mui-table-view-cell {
  width: 33.333%;
  font-size: 12px;
}
.mui-table-view-cell img {
  width: 50%;
}
#div .mui-grid-view.mui-grid-9 {
  background-color: #fff;

}
</style>